import service from '@/utils/request'

export const createAdsTopic = (data) => {
  return service({
    url: '/adsTopic/createAdsTopic',
    method: 'post',
    data
  })
}

export const deleteAdsTopic = (data) => {
  return service({
    url: '/adsTopic/deleteAdsTopic',
    method: 'delete',
    data
  })
}

export const deleteAdsTopicByIds = (data) => {
  return service({
    url: '/adsTopic/deleteAdsTopicByIds',
    method: 'delete',
    data
  })
}

export const updateAdsTopic = (data) => {
  return service({
    url: '/adsTopic/updateAdsTopic',
    method: 'put',
    data
  })
}

export const findAdsTopic = (params) => {
  return service({
    url: '/adsTopic/findAdsTopic',
    method: 'get',
    params
  })
}

export const getAdsTopicList = (params) => {
  return service({
    url: '/adsTopic/getAdsTopicList',
    method: 'get',
    params
  })
}

export const getAllAdsTopics = (params) => {
  return service({
    url: '/adsTopic/getAllAdsTopics',
    method: 'get',
    params
  })
}

export const getAdsTopic = (data) => {
  return service({
    url: '/adsTopic/getAdsTopic',
    method: 'post',
    data
  })
}
